
ROOT_PATH=$(cd `dirname $0`; pwd)
MY_IP=$(ifconfig | grep inet | grep -v inet6 | grep -v -E "127.*"| grep -v -E "169.*"| cut -d ' ' -f2)
MY_IP="127.0.0.1"

echo ROOT_PATH=${ROOT_PATH}
echo MY_IP=${MY_IP}


RUN_CMD="\
app/proxy/bin/proxy \
-api=${MY_IP}:2020 \
-backend=127.0.0.1:2021 \
-log-level=*=DEBUG \
-job-dir=/tmp/recorder/job \
-log-dir=/data/logs \
"

echo RUN_CMD=${RUN_CMD}
${RUN_CMD}
